home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Easy 2010 May
/
Mac Life Ubuntu.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
python-support
/
python-rdflib
/
rdflib
/
FileInputSource.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2007-04-04
|
324 b
|
12 lines
from xml.sax.xmlreader import InputSource
class FileInputSource(InputSource, object):
def __init__(self, file):
super(FileInputSource, self).__init__(`file`)
self.file = file
self.setByteStream(file)
# TODO: self.setEncoding(encoding)
def __repr__(self):
return `self.file`